package com.lis.scf.common.dto;


import com.lis.scf.common.enums.CompanyType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 当前登录用户信息DTO
 * 包含用户基本信息和所属企业信息
 */
@Data
@Schema(description = "当前登录用户信息响应DTO")
public class CurrentUserDTO {

    @Schema(description = "用户ID", example = "10001")
    private Long userId;

    @Schema(description = "用户名", example = "logistics_admin")
    private String username;

    @Schema(description = "真实姓名", example = "张三")
    private String realName;

    @Schema(description = "手机号码", example = "13800138000")
    private String mobileNumber;

    @Schema(description = "是否激活", example = "true")
    private Boolean isActive;

    @Schema(description = "最后登录时间", example = "2023-10-01 08:30:00")
    private String lastLoginTime;

    // 所属企业信息
    @Schema(description = "企业ID", example = "20001")
    private Long companyId;

    @Schema(description = "企业名称", example = "XX物流有限公司")
    private String companyName;

    @Schema(description = "企业类型", example = "物流企业")
    private CompanyType companyType;

    @Schema(description = "统一社会信用代码", example = "91110105MA00AAAAAA")
    private String unifiedCreditCode;
}
